package utl.mofen.objects;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map.Entry;

public class KeyStream 
{	
	Hashtable<String, byte[]> store = new Hashtable<String, byte[]>();
	
	public void add(String key, byte[] stream)
	{
		store.put(key, stream);
	}
	
	public byte[] getStream(String key)
	{
		
		return store.get(key);
	}
	
	public Iterator<Entry<String, byte[]>> iterator()
	{

		return store.entrySet().iterator();
	}
	
	public boolean hasStream()
	{
		return store.size() > 0;
	}
	
}
